import requests
import random
import threading


def req():
    v = random.randint(1, 100)
    requests.get(f"http://localhost:8080/{v}", headers={"X-Value": str(v)})


t_list = []
for i in range(10):
    t = threading.Thread(target=req)
    t.start()
    t_list.append(t)
    # req()

for t in t_list:
    t.join()
